import request from '@/utils/request'

// 查询产品数量报表数据
export function getProductCountChart(query) {
  return request({
    url: '/system/statistic/productCount/list',
    method: 'get',
    params: query
  })
}

// 导出产品数量报表数据
export function exportProductCount(query) {
  return request({
    url: '/system/statistic/productCount/export',
    method: 'get',
    params: query
  })
}

// 查询用户新增报表数据
export function getUserRegisterCountChart(query) {
  return request({
    url: '/system/statistic/userRegister/list',
    method: 'get',
    params: query
  })
}

// 导出用户新增报表数据
export function exportUserRegisterCountChart(query) {
  return request({
    url: '/system/statistic/userRegister/export',
    method: 'get',
    params: query
  })
}

// 查询设备新增报表数据
export function getDeviceIncreaseCountChart(query) {
  return request({
    url: '/system/statistic/deviceIncrease/list',
    method: 'get',
    params: query
  })
}

// 导出设备新增报表数据
export function exportDeviceIncreaseCountChart(query) {
  return request({
    url: '/system/statistic/deviceIncrease/export',
    method: 'get',
    params: query
  })
}

// 查询用户设备报表数据
export function getUserDeviceChart(query) {
  return request({
    url: '/system/statistic/userDevice/list',
    method: 'get',
    params: query
  })
}

// 导出用户设备报表数据
export function exportUserDeviceChart(query) {
  return request({
    url: '/system/statistic/userDevice/export',
    method: 'get',
    params: query
  })
}

// 查询网关新增报表数据
export function getGatewayIncreaseCountChart(query) {
  return request({
    url: '/system/statistic/gatewayIncrease/list',
    method: 'get',
    params: query
  })
}

// 导出网关新增报表数据
export function exportGatewayIncreaseCountChart(query) {
  return request({
    url: '/system/statistic/gatewayIncrease/export',
    method: 'get',
    params: query
  })
}

// 查询账号消息数报表数据
export function getAccountMessageCountChart(query) {
  return request({
    url: '/system/statistic/accountMessageCount/list',
    method: 'get',
    params: query
  })
}

// 导出账号消息数报表数据
export function exportAccountMessageCountChart(query) {
  return request({
    url: '/system/statistic/accountMessageCount/export',
    method: 'get',
    params: query
  })
}

// 查询网关消息数报表数据
export function getGatewayMessageCountChart(query) {
  return request({
    url: '/system/statistic/gatewayMessageCount/list',
    method: 'get',
    params: query
  })
}

// 导出网关消息数报表数据
export function exportGatewayMessageCountChart(query) {
  return request({
    url: '/system/statistic/gatewayMessageCount/export',
    method: 'get',
    params: query
  })
}
